package com.jjyu.service;

import com.jjyu.entity.Feedback;
import com.jjyu.dao.FeedbackMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FeedbackService {

    @Autowired
    private FeedbackMapper feedbackMapper;

    public Feedback saveFeedback(Feedback feedback) {

        feedbackMapper.insert(feedback);  // 使用MyBatis-Plus提供的insert方法保存反馈
        return feedback;
    }
}